package cpu.footprint.common;

import android.app.Dialog;
import android.app.Fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;

import cpu.footprint.R;

/**
 * Created by Administrator on 2017/10/16.
 */

public class BaseFragment extends Fragment{
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }
    public static Dialog showLoadingDialog(Context context){
        // 创建Dialog并传递style文件
        final Dialog dialog = new Dialog(context, R.style.dialog);
        // 设置它的ContentView
        dialog.setContentView(R.layout.loading_dialog);
        return dialog;
    }
}
